package com.sinog.biz.service.business;

import com.sinog.core.utilbean.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc 文件模板service
 * @author -
 * @date -
 */
@RestController
public interface FileTemplateService {

    /**
     * 保存模板文件
     * @param text text
     * @return Result
     */
    @RequestMapping("/azbj/sjtjfx/scbg/uploadtemplate/saveTemplate")
    Result saveData(@RequestParam(value = "text", required = false) String text);

    /**
     * 获取列表信息
     * @param pageIndex pageIndex
     * @param pageSize pageSize
     * @param key key
     * @return String
     */
    @RequestMapping("/azbj/sjtjfx/scbg/uploadtemplate/getTemplateFileList")
    String getTemplateFileList(
            @RequestParam(value = "pageIndex", required = false) Integer pageIndex,
            @RequestParam(value = "pageSize", required = false) Integer pageSize,
            @RequestParam(value = "key", required = false) String key);

    /**
     * 获取列表信息
     * @param id id
     * @return Result
     */
    @RequestMapping("/azbj/sjtjfx/scbg/uploadtemplate/getTemplateInfoById")
    Result getTemplateInfoById(@RequestParam(value = "id", required = false) String id);

    /**
     * 删除模板文件
     * @param id id
     * @return Result
     */
    @RequestMapping("/azbj/sjtjfx/scbg/uploadtemplate/delTemplate")
    Result delTemplate(@RequestParam(value = "id", required = false) String id);
}